package com.wiseman.writing.utility.parsedata;

import java.io.InputStream;
import java.util.Map;
import java.util.TreeMap;

public class part2Char extends TxtParser{	
	
	public Map<Character, String> mPart2CharTab = new TreeMap<Character, String>();

	public part2Char(String filename) {
		read(filename);
	}
	
	public part2Char(InputStream in) {		
		read(in);
	}

	@Override
	void processLine(String line) {	
	
		int startIndex = line.indexOf("[");
		int endIndex = line.indexOf("]");		
		
		String chars  = line.substring(startIndex+1, endIndex);
		mPart2CharTab.put(line.charAt(0), chars);		
	}

}
